home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 8542 / 8542.xpi / chrome / lastpass.jar / content / grid.js < prev    next >
Text File  |  2010-02-14  |  2KB  |  7 lines

  1. var lpgridusername=null;function window_load(D,B){lpgridusername=(typeof(B.arguments)!="undefined"&&B.arguments.length>0&&typeof(B.arguments[0])!="undefined"&&typeof(B.arguments[0].username)!="undefined")?B.arguments[0].username:null;D.title=LP.lpgs("LastPass Grid Multifactor Authentication");LP.sr(D,"lpgrid1","value","For each coordinate listed below, find the value on your grid and enter the value.");
  2. LP.sr(D,"lpgridinput1","value","");LP.sr(D,"lpgridinput2","value","");LP.sr(D,"lpgridinput3","value","");LP.sr(D,"lpgridinput4","value","");LP.sr(D,"lpbutton","label","Authenticate");LP.sr(D,"lpgridlost","value","If you lost your grid, click here to disable grid authentication");LP.sr(D,"lptrust","label","This computer is trusted, do not require a second form of authentication.");
  3. LP.sr(D,"lplabeltext","value","Please provide this computer a name");D.getElementById("lpgridinput1").focus();if(typeof(B.arguments[0].challenge)=="string"){var A=B.arguments[0].challenge.split(" ");for(var C=0;C<A.length;C++){LP.sr(D,"grid"+(C+1)+"label","value",A[C])}}if(B.arguments[0].username==null){D.getElementById("lpgridlost").style.display="none"
  4. }}function lpgridaccept(B,A){if(B.getElementById("lptrust").checked){if(B.getElementById("trustlabel").value==""){LP.alert(LP.lpgs("Please provide this computer a name"));return false}else{if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){A.arguments[0].label=B.getElementById("trustlabel").value
  5. }}}if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){if(B.getElementById("lpgridinput1").value!=""&&B.getElementById("lpgridinput2").value!=""&&B.getElementById("lpgridinput3").value!=""&&B.getElementById("lpgridinput4").value!=""){A.arguments[0].values=B.getElementById("lpgridinput1").value+","+B.getElementById("lpgridinput2").value+","+B.getElementById("lpgridinput3").value+","+B.getElementById("lpgridinput4").value
  6. }else{A.arguments[0].values=""}}return true}function lpgridcancel(B,A){if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){A.arguments[0].values=""}}function lpgridlost(){if(lpgridusername){LP.lpbaseopen("griddisable.php?cmd=sendemail&username="+encodeURIComponent(lpgridusername))}};
  7.